package com.czp.infosharingplatformapp.dto;

import com.czp.infosharingplatformapp.model.User;

import java.time.LocalDateTime;

public class ResourceResponse {
    private Long id;
    private String fileName; // 文件名
    private String filePath; // 文件存储路径
    private CategoryResponse category; // 文件所属分类
    private LocalDateTime uploadedAt; // 上传时间
    private String description; // 文件描述
    private User uploader; // 上传者用户

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public CategoryResponse getCategory() {
        return category;
    }

    public void setCategory(CategoryResponse category) {
        this.category = category;
    }

    public LocalDateTime getUploadedAt() {
        return uploadedAt;
    }

    public void setUploadedAt(LocalDateTime uploadedAt) {
        this.uploadedAt = uploadedAt;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public User getUploader() {
        return uploader;
    }

    public void setUploader(User uploader) {
        this.uploader = uploader;
    }
}
